home *** CD-ROM | disk | FTP | other *** search
/ Softwarová Záchrana 3 / Softwarova-zachrana-3.bin / Xteq X-Setup / xqdcXSP-Setup-EN.exe / {app} / plugins / XQ Disk Compression 2.xpl < prev    next >
Text File  |  2001-05-04  |  3KB  |  88 lines

  1. "FILE"="Xteq Systems X-Setup Plugin 6.0"
  2. "TYPE"="1"
  3. "COUNT"="4"
  4. "UIPATH"="System\File System\Windows 9x/ME Options\Compression"
  5. "NAME"="Compression Settings via Task Scheduler"
  6. "VERSION"="1.05"
  7. "OSVERSION"="10101"
  8. "LANGUAGE"="VBScript"
  9. "TEXT 1"="UltraPack Settings"
  10. "TEXT 2"="MinimumFreeSpace"
  11. "TEXT 3"="Change UltraPack"
  12. "TEXT 4"="Default Format"
  13. "DESCRIPTION 1"="Item #1: Specify which files to compress using the Ultra Pack option. These settings apply when running Compression Agent from the Task Manager, not as a stand alone application. Enter "None" [no quotes] for best performance; enter "All" [no quotes] for highest compression [not recommended for 486 processors]; enter "30" [no quotes] to use Ultra Pack on only files that haven't been used within the last 30 days."
  14. "DESCRIPTION 2"="Item #2: Specify the minimum amount of free space available in MBs below which no file's compression level will be changed. Default is "20" [no quotes]."
  15. "DESCRIPTION 3"="Item #3: To recompress Ultra Packed files to Default Format, enter "Yes" [no quotes]; to leave all Ultra Packed files in Ultra Pack format, enter "No" [no quotes]. Suggested value is "Yes".
  16. "DESCRIPTION 4"="Item #4: For files not Ultra Packed, enter "HiPack" [no quotes] to use HiPack format as the default; HiPack is recommended for a balance of good performance and compression. For maximum performance that stores non-Ultra Packed files as uncompressed, enter "None" [no quotes]."
  17. "AUTHOR"="Ojatex@aol.com"
  18. "CONTACTURL"="http://members.aol.com/ojatex/"
  19. "COPYRIGHT"="Copyright ⌐ Xteq Systems - All Rights Reserved"
  20. "COMMENT 1"=" "
  21. "COMMENT 2"="Tame the bloat, squeeze the bytes."
  22.  
  23.  
  24. sP1="HKLM\Software\Microsoft\Plus!\System Agent\SAGE\Compression Agent\Set0\UltraPackPolicy\@"
  25. sP2="HKLM\Software\Microsoft\Plus!\System Agent\SAGE\Compression Agent\Set0\MinFreeSpace\@"
  26. sP3="HKLM\Software\Microsoft\Plus!\System Agent\SAGE\Compression Agent\Set0\UltraToDefault\@"
  27. sP4="HKLM\Software\Microsoft\Plus!\System Agent\SAGE\Compression Agent\Set0\DefaultPolicy\@"
  28. 'Called when the Plugin is started
  29. SUB Plugin_Initialize
  30.     i=RegReadValue(sP1)
  31.     if IsEmpty(i) then
  32.        Call SetUIElement(1,i)   
  33.     else
  34.        Call SetUIElement(1,i)
  35.     end if
  36.  
  37.    i=RegReadValue(sP2)
  38.     if IsEmpty(i) then
  39.        Call SetUIElement(2,i)   
  40.     else
  41.        Call SetUIElement(2,i)
  42.     end if
  43.  
  44.    i=RegReadValue(sP3)
  45.     if IsEmpty(i) then
  46.        Call SetUIElement(3,i)   
  47.     else
  48.        Call SetUIElement(3,i)
  49.     end if
  50.  
  51.    i=RegReadValue(sP4)
  52.     if IsEmpty(i) then
  53.        Call SetUIElement(4,i)   
  54.     else
  55.        Call SetUIElement(4,i)
  56.     end if
  57. END SUB
  58.  
  59. 'Called when the Plugin should validate the Data the user has entered
  60. SUB Plugin_CheckData(ElementIndex)
  61. END SUB
  62.  
  63. 'Called when the Plugin should apply the changes
  64. SUB Plugin_Apply(ElementIndex,ElementSubIndex)
  65.  i=GetUIElement(1)
  66.  
  67.   Call RegWriteValue(sP1,i,1)
  68.  
  69. i=GetUIElement(2)
  70.  
  71.     Call RegWriteValue(sP2,i,1)  
  72.  
  73. i=GetUIElement(3)
  74.  
  75.     Call RegWriteValue(sP3,i,1)  
  76.  
  77. i=GetUIElement(4)
  78.  
  79.     Call RegWriteValue(sP4,i,1) 
  80.  
  81.  
  82. END SUB
  83.  
  84. SUB Plugin_Terminate
  85.  
  86. END SUB
  87.  
  88.